﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace _2112A_2_MES._chubowen
{
    /// <summary>
    /// 物料产品分类表
    /// </summary>
    
    public class MdItemType : Entity<int>
    {
        

        /// <summary>
        /// 物料类型编码
        /// </summary>
        [StringLength(64)]
        public string? ItemTypeCode { get; set; }

        /// <summary>
        /// 物料类型名称
        /// </summary>
        [StringLength(255)]
        public string? ItemTypeName { get; set; }

        /// <summary>
        /// 父类型ID
        /// </summary>
        public int ParentTypeId { get; set; }

        /// <summary>
        /// 所有父节点ID
        /// </summary>
        [StringLength(255)]
        public string? Ancestors { get; set; }

        /// <summary>
        /// 物料产品标识
        /// </summary>
        [StringLength(20)]
        public string? ItemOrProductId { get; set; }

        /// <summary>
        /// 排序顺序
        /// </summary>
        public int? OrderNum { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        [StringLength(1)]
        public string? EnableFlag { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(500)]
        public string? Remark { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [StringLength(64)]
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        [StringLength(64)]
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}
